]> dgit.raspbian.org Git - gnome-shell.git/commit
network: Catch errors when reading devices
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 7 Mar 2019 19:26:12 +0000 (20:26 +0100)
committerMarco Trevisan <mail@3v1n0.net>
Wed, 27 Mar 2019 15:06:49 +0000 (15:06 +0000)
commit4fa5d701d536370084afa89acf43de79e4f14e25
treee233fab2820cd3f5d0bc841010011b1905cf4ef3
parentb05683d586f23e2b8aeb890f06162336aa538c4f
network: Catch errors when reading devices

NetworkManager added support for a new device - NMDeviceWifiP2P - but
did not add the corresponding enum value in NMDeviceType. The return
value for nm_device_get_device_type() is therefore "illegal" for the
newly added device, and gjs throws an exception.

This should ultimately be fixed in libnm, but as errors when adding
one device shouldn't interfere with adding any other devices, catching
exception is a good idea anyway, so do just that.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/1023
js/ui/status/network.js